package com.wanmait.baohan.service.Impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.baohan.mapper.AccountMapper;
import com.wanmait.baohan.pojo.Account;
import com.wanmait.baohan.service.AccountService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Service
@Transactional(rollbackFor = Exception.class)
public class AccountServiceImpl implements AccountService {
    @Resource
    private AccountMapper accountMapper;
    @Override
    public void insert(Account object) {
        accountMapper.insert(object);
    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(Account object) {

    }

    @Override
    public Account findById(Integer id) {
        return accountMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Account> findAll() {
        return null;
    }

    @Override
    public List<Account> findAll(Account object) {
        return null;
    }

    @Override
    public PageInfo<Account> findPage(int pageNum) {
        return null;
    }

    @Override
    public PageInfo<Account> findPage() {
        return null;
    }

    @Override
    public PageInfo<Account> findPage(int pageNum, Account object) {
        return null;
    }

    @Override
    public PageInfo<Account> findPage(Account object) {
        return null;
    }

    @Override
    public List<Account> findAllAccountForCustomer(Integer id) {
        return accountMapper.findAllAccountForCustomer(id);
    }
}
